<template>
<div class="layerRtb layerRtb-threecolumn layerRtb-right">
    <three-title :title="{name:'业务'}" :close="false">
   <span tag="i" class="rig_close fr" @click="$parent.$parent.clickFourShow()"></span>
    </three-title>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "137">
        <div v-if="noticeList.length>0">
        <div class="analyItem" v-for="(item,index) in noticeList" :key="index">
            <p class="analyItemTit tx-center">{{item.title}}</p>
            <div class="analyItemCon">
                  <p class="col-md-12">
                    <span class="cLightGray pr8">{{item.txt}}</span>
                </p>
                <p class="col-md-10">
                    <span class="cLightGray pr8"></span>
                </p>
                <p class="col-md-2">
                    <span class="cLightGray pr8">{{item.create_date}}</span>
                </p>
            </div>
        </div>
        </div>
        <div v-else>

       <div class="analyItem">
            <p class="analyItemTit tx-center">暂无</p>
            <div class="analyItemCon">
                  <p class="col-md-12">
                    <span class="cLightGray pr8"></span>
                </p>
            </div>
        </div>
        </div>
    </div>
    <div class="layerRtb-footer">
        <div class="analyItem">
            <p class="analyItemTit tx-center">综合</p>
            <div class="analyItemCon">
                <!-- <p class="fl col-md-9"></p>
                <p class="fr col-md-3">
                    <span class="cLightGray">统计</span>
                    <span class="cGreen fz14 bold">0分</span>
                </p>
                <p class="fl"><span class="circlemark circlemark-green">优</span></p> -->
            </div>
        </div>
        <!-- <div class="tx-center">
            <input type="button" class="uiBtn-normal uiBtn-blue" value="确定">
        </div> -->
    </div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
// eslint-disable-next-line standard/object-curly-even-spacing
import {getAppNoticeList} from '../../../Resources/Api/index'
export default {
    data () {
        return {
            noticeList: []
        }
    },
    computed: {
        ...mapGetters(['leftInfo', 'userInfo'])
    },
    created () {
        this.appNoticeList()
    },
    methods: {
        appNoticeList () {
            getAppNoticeList({
                CardNo: this.leftInfo.app_cardNo,
                group: 3,
                IsApp: 5
            }).then(result => {
                this.noticeList = result.data.Body
            }).catch(err => {
                console.log(err)
            })
        }
    }
}
</script>
